<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Canbot Denayer 13/14 - a: Thread Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Canbot Denayer 13/14 - a
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-static-methods">Static Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Thread Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="Thread" -->
<p>Defines the class 'thread', Which will setup the thread.  
 <a href="classThread.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="thread_8h_source.html">thread.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Thread:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classThread.png" usemap="#Thread_map" alt=""/>
  <map id="Thread_map" name="Thread_map">
<area href="classClient.html" title="Defines the class &#39;Client&#39;, Which will setup the client." alt="Client" shape="rect" coords="0,56,52,80"/>
</map>
 </div></div>

<p><a href="classThread-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a558b33b40917b48051569526b4c5ec85"></a><!-- doxytag: member="Thread::tid" ref="a558b33b40917b48051569526b4c5ec85" args="() const " -->
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>tid</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThread.html#a4622078eac94394b7a7f06d4af0db9ea">start</a> (void *arg=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThread.html#a4d9d788e98388a3217831a9046709deb">join</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abebed72ba5d26e986574371a5371b024"></a><!-- doxytag: member="Thread::mutex_lock" ref="abebed72ba5d26e986574371a5371b024" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>mutex_lock</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a21c6a56830820fdf99d2bb6d99a19081"></a><!-- doxytag: member="Thread::mutex_unlock" ref="a21c6a56830820fdf99d2bb6d99a19081" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>mutex_unlock</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91a2e7457bcdaa818928ae53cb983e9d"></a><!-- doxytag: member="Thread::wait_condition" ref="a91a2e7457bcdaa818928ae53cb983e9d" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>wait_condition</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a18c72fa2b30643a324b24dc9a7227650"></a><!-- doxytag: member="Thread::signal_condition" ref="a18c72fa2b30643a324b24dc9a7227650" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>signal_condition</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae90dfabab3e1776cf01a26e7ee3a620"></a><!-- doxytag: member="Thread::run" ref="aae90dfabab3e1776cf01a26e7ee3a620" args="()=0" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>run</b> ()=0</td></tr>
<tr><td colspan="2"><h2><a name="pro-static-methods"></a>
Static Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8723a3f6acb31ac5e6c7ca459bfd42e"></a><!-- doxytag: member="Thread::exec" ref="ad8723a3f6acb31ac5e6c7ca459bfd42e" args="(void *thr)" -->
static void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThread.html#ad8723a3f6acb31ac5e6c7ca459bfd42e">exec</a> (void *thr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that is to be executed by the thread. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1abc71e32a5f76bbe5974ea69bb65dea"></a><!-- doxytag: member="Thread::arg" ref="a1abc71e32a5f76bbe5974ea69bb65dea" args="" -->
void *&#160;</td><td class="memItemRight" valign="bottom"><b>arg</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Defines the class 'thread', Which will setup the thread. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4d9d788e98388a3217831a9046709deb"></a><!-- doxytag: member="Thread::join" ref="a4d9d788e98388a3217831a9046709deb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classThread.html#a4d9d788e98388a3217831a9046709deb">Thread::join</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Allow the thread to wait for the termination status </p>

</div>
</div>
<a class="anchor" id="a4622078eac94394b7a7f06d4af0db9ea"></a><!-- doxytag: member="Thread::start" ref="a4622078eac94394b7a7f06d4af0db9ea" args="(void *arg=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classThread.html#a4622078eac94394b7a7f06d4af0db9ea">Thread::start</a> </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>if you get an error here (undefined reference to 'pthread_create') please include -lpthread to your linker options</p>
<p>^ READ THE COMMENT IF ERROR ^ </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>denayer-canbot-13-14-a/src/wifi/<a class="el" href="thread_8h_source.html">thread.h</a></li>
<li>denayer-canbot-13-14-a/src/wifi/<a class="el" href="thread_8cpp.html">thread.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Apr 24 2014 11:39:28 for Canbot Denayer 13/14 - a by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
